GdkGLContextX11: Don't free NULL visual info
authorAlexander Larsson <alexl@redhat.com>
Wed, 29 Oct 2014 10:25:21 +0000 (11:25 +0100)
committerAlexander Larsson <alexl@redhat.com>
Wed, 29 Oct 2014 10:26:00 +0000 (11:26 +0100)
gdk/x11/gdkglcontext-x11.c

index 12a6b8a8435410a2680993c8b07c526ec5f75722..a6f8213ebc4e8311c5d0ba3487152eb725b8010e 100644 (file)
@@ -634,10 +634,7 @@ find_fbconfig_for_visual (GdkDisplay        *display,
 
       visinfo = glXGetVisualFromFBConfig (dpy, configs[i]);
       if (visinfo == NULL)
-        {
-          XFree (visinfo);
-          continue;
-        }
+        continue;
 
       if (visinfo->visualid != xvisual_id)
         continue;